package com.ecas.controller.systemManager;

import com.ecas.core.base.controller.BaseController;
import com.ecas.service.RoleService;
import com.ecas.service.dto.systemanager.RoleDTO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lenovo on 2017/12/20.
 */
@Controller
@RequestMapping(value = "/role")
public class RoleManagerController extends BaseController<RoleService, RoleDTO> {

    @RequestMapping(value = "/getRolesByUserId", method = RequestMethod.GET)
    public List<RoleDTO> getRolesByUserId(String userId) {
        List<RoleDTO> roles = new ArrayList<>();
        RoleDTO role = new RoleDTO();
        // role.setRoleName("系统管理员");
        roles.add(role);
        return roles;
    }
}
